#!/usr/bin/env bash

PID=`ps aux|grep "puzzle"|grep -v bash|grep -v grep|sed -n 1p |awk '{print $2}'` 
if [ -n "$PID" ]
then
	echo 'puzzle running'
else
	echo 'run puzzle'
	screen -d -m java -jar /root/puzzle/puzzle-1.0-SNAPSHOT.jar 2>&1 1>/root/puzzle/sss
fi
